home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 42 / Amiga Format AFCD42 (Issue 126, Aug 1999).iso / -serious- / programming / c / gaplib_beta / wizards / templates / skeleton.c < prev   
Encoding:
Text File  |  1999-05-14  |  481 b   |  34 lines

  1.  
  2. $4/*
  3.  * Will you answer no to this question?
  4.  */$
  5.  
  6. void    Init$N(struct $N *Polly)
  7. {
  8. $1/* Initialize individual. */$
  9. }
  10.  
  11. void Mutate$N(struct $N *Polly)
  12. {
  13. $1/* Mutate individual */$
  14. }
  15.  
  16. void Cross$N(struct $N *Polly,struct $N *Tweety)
  17. {
  18. $1/* Persorm crossover between individuals. */$
  19. }
  20.  
  21. double Compare$N(struct $N *Polly,struct $N *Tweety,int i)
  22. {
  23. double dist=0.0;
  24.  
  25. $1/* compare two individuals. */$
  26.  
  27. return(dist);
  28. }
  29.  
  30. void Kill$N(struct $N *Polly)
  31. {
  32. $1/* Delete an individual. */$
  33. }
  34.